import random
computer = random.randint(1, 3)

person = int(input("请输入你的选择:1:石头， 2.剪刀  3.布\n"))
if (person == 1 and computer == 2) or (person == 2 and computer == 3) or (person == 3 and computer == 1):
    print("person win!")
elif person == computer:
    print("tie")
else:
    print("computer win!")